package com.turing.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 客户流水
 * @TableName customer_withdrawals
 */
@TableName(value ="customer_withdrawals")
@Data
public class CustomerWithdrawals implements Serializable {
    /**
     * 客户流水主键
     */
    @TableId
    private String cwId;

    /**
     * 源外键
     */
    private String sourceId;

    /**
     * 源改变前值
     */
    private BigDecimal sourceReValue;

    /**
     * 目标外键
     */
    private String targetId;

    /**
     * 目标改变前值
     */
    private BigDecimal targetReValue;

    /**
     * 流水值
     */
    private BigDecimal cwValue;

    /**
     * 流水类型，0现金，1客币
     */
    private Integer cwType;

    /**
     * 流水说明
     */
    private String cwInfo;

    /**
     * 流水创建时间
     */
    private Date cwCreateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}